package com.kelvin.oocl.protocol;

import java.io.Serializable;

public class Protocol implements Serializable{
	private int type;		//1登陆，2私聊，3群聊
	private String content;
	private String from;
	private String to;
	
	public Protocol() {
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	@Override
	public String toString() {
		return "Protocol [type=" + type + ", content=" + content + ", from="
				+ from + ", to=" + to + "]";
	}
	
	
}
